import request from '@/utils/request'

export function getMembersList(params) {
  return request({
    url: '/customerMember/list',
    method: 'get',
    params
  })
}

export function createMember(params) {
  return request({
    url: '/customerMember/insert',
    method: 'post',
    data: params
  })
}

export function updateMember(params) {
  return request({
    url: '/customerMember/update',
    method: 'post',
    data: params
  })
}

export function deleteMember(params) {
  return request({
    url: '/customerMember/delete',
    method: 'post',
    params
  })
}

export function jobCode() {
  return request({
    url: '/jobCode/list',
    method: 'get'
  })
}
